package edu.spec.student.service.iface;

import edu.spec.student.model.event.Event;
import edu.spec.basic.model.enumeration.Status;
import org.madgecko.basic.model.Pager;

import java.util.List;
import java.util.Map;


/**
 * Created by MadFrog on 2017/5/20.
 */
public interface IEventService {
    void add(Event e);
    void delete(Integer id);
    void update(Event event);
    Pager<Event> findByCon(Status status, String keyword);
    Map<String, List<Event>> listStudentEvent(Integer id);
    Event load(Integer id);
    void attend(Integer studentId, Integer eventId);
    void toggleStatus(Integer id);
}
